package org.dromara.system.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.PayLink;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 支付链接视图对象 pay_link
 *
 * @author Gavino
 * @date 2024-11-01
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayLink.class)
public class PayLinkVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long linkId;

    /**
     * 短链码
     */
    @ExcelProperty(value = "短链码")
    private String code;

    /**
     * 应用ID
     */
    @ExcelProperty(value = "应用ID")
    private Long appId;

    /**
     * 国家
     */
    @ExcelProperty(value = "国家")
    private String country;

    /**
     * 币别
     */
    @ExcelProperty(value = "币别")
    private String currency;

    /**
     * 订单总金额
     */
    @ExcelProperty(value = "订单总金额")
    private BigDecimal total;

    /**
     * 是否传地址
     */
    @ExcelProperty(value = "是否传地址")
    private Integer isAddress;

    /**
     * 产品信息
     */
    @ExcelProperty(value = "产品信息")
    private String product;

    /**
     * 支付成功地址
     */
    @ExcelProperty(value = "支付成功地址")
    private String successUrl;

    /**
     * 支付失败地址
     */
    @ExcelProperty(value = "支付失败地址")
    private String failureUrl;

    /**
     * 点击返回地址
     */
    @ExcelProperty(value = "点击返回地址")
    private String cancelUrl;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "pay_link_status")
    private Integer status;

    /**
     * 时效性  0 一次性   1 永久
     */
    @ExcelProperty(value = "时效性")
    private Integer expire;

    /**
     * 过期时间
     */
    @ExcelProperty(value = "过期时间")
    private Date expireTime;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 代理人名称
     */
    @ExcelProperty(value = "代理人名称")
    private String agentName;

    /**
     * 是否传邮箱
     */
    private Integer needMail;

    /**
     * 商品类型
     */
    private Integer goodsType;
}
